﻿Namespace Cues.Converters
    Public Class BooleanToLoopImageConverter
        Implements IValueConverter

        Public Function Convert(value As Object, targetType As Type, parameter As Object, culture As Globalization.CultureInfo) As Object Implements IValueConverter.Convert
            Try
                If CType(value, Boolean) = True Then
					Return "/Q2Q;component/Images/16x16/Loop.png"
				Else
					Return "/Q2Q;component/Images/16x16/LoopGray.png"
                End If
            Catch ex As Exception
                Return Nothing
            End Try
        End Function

        Public Function ConvertBack(value As Object, targetType As Type, parameter As Object, culture As Globalization.CultureInfo) As Object Implements IValueConverter.ConvertBack
            Throw New NotImplementedException
        End Function
    End Class
End Namespace